const express = require("express")
const router = express.Router()
const expressJoi = require("@escook/express-joi")

const userInfoSection = require('../router_handler/userinfo')
const {order_delete_schema} = require('../schema/user')

// 获取用户基本信息
router.get('/user',userInfoSection.user)

// 获取订单
router.get('/Order',userInfoSection.Order)

// 删除订单
router.delete('/delete',userInfoSection.delete)

// 增加订单
router.post('/add',expressJoi(order_delete_schema),userInfoSection.add)

module.exports = router